/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class ResponseCriteria extends AbstractORMCriteria {
	public final IntegerExpression idResponse;
	public final IntegerExpression response;
	
	public ResponseCriteria(Criteria criteria) {
		super(criteria);
		idResponse = new IntegerExpression("idResponse", this);
		response = new IntegerExpression("response", this);
	}
	
	public ResponseCriteria(PersistentSession session) {
		this(session.createCriteria(Response.class));
	}
	
	public ResponseCriteria() throws PersistentException {
		this(orm.Taller1PDSPersistentManager.instance().getSession());
	}
	
	public PacientCriteria createPacientidPacienteCriteria() {
		return new PacientCriteria(createCriteria("pacientidPaciente"));
	}
	
	public QuestionCriteria createQuestionidQuestCriteria() {
		return new QuestionCriteria(createCriteria("questionidQuest"));
	}
	
	public Response uniqueResponse() {
		return (Response) super.uniqueResult();
	}
	
	public Response[] listResponse() {
		java.util.List list = super.list();
		return (Response[]) list.toArray(new Response[list.size()]);
	}
}

